.toolbar {
  max-width: 200px;
}

.toolbarReadonly {
  height: 35px;
  line-height: 35px;
  font-size: 10pt;
  color: #39221C;
  font-style: italic;
  text-align: center;
}

.toolbarButton, .toolbarGroup {
  display: inline-block;
  width: 42px;
  height: 42px;
  padding: 2px;
  margin: 2px;
  border-radius: 2px;

  &.selected {
    background-color: rgba(0, 0, 0, 0.5);
  }

  &:hover:not(.selected) {
    background-color: rgba(0, 0, 0, 0.3);
  }

  &:focus.selected, &:focus:active {
    outline: none;
  }
  &:focus:not(.selected):not(:active) {
    outline: 1px dotted rgba(0, 0, 0, 0.75);
  }
}

// @media (max-height: 800px) {
//   .toolbarButton:nth-child(n+7) {
//     width: 16px;
//     height: 16px;
//   }
// }

.toolbarButton img {
  width: 100%;
  height: 100%;
  vertical-align: top;
}

.toolbarSpacer {
  height: 12px;
}

.toolbarGroup {
  position: relative;
  max-height: 50px;
}

.toolbarGroupPanel {
  display: none;
  position: absolute;
  top: -52px;
  background-color: #997A73;
  border-radius: 2px;
  box-shadow: 0 1px 2px #333333;
  clip: rect(auto, auto, auto, auto);
}
.toolbarGroup:hover .toolbarGroupPanel {
  display: inline-block;
}
